package com.example.win.android_banduyujia.peopleactivity.activity.activity.dooractivity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.lib.util.StrUtils;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/9/10.
 */
public class pckageActivity extends BaseTitleBarActivity {

    private String  mNickPackage = " ";
    private EditText mEditpackage;
    private ImageView mImageCancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_package_page);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.layout_edit_package_price);
        setRightTextViewListener(R.string.layout_data_save_button, mRightListener);
    }

    private View.OnClickListener mRightListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {
            if(StrUtils.isEmpty(mNickPackage)){
                showToast(R.string.layout_data_save_button);
                return;
            }
            save();
        }
    };

    private void save() {

    }
    private void InitViews() {
        mImageCancel= (ImageView) findViewById(R.id.update_package_image_icon);
        mEditpackage= (EditText) findViewById(R.id.update_package_edit_text);
    }
}
